package com.et114.core.common;
/*
 * @AUTHOR GUANHW
 */
public class CONST {
	public static String CONFIG_NAME = "config.properties" ;
	public static String STRUTS_TOKEN = "token.properties" ;
	
	public static String DEFAULT_SPRING_CONFIG_LOC= "classpath:/config/spring/**/applicationContext-base.xml" ;
	
	public static String DB_ORACLE = "ORACLE" ;
	public static String DB_SQLSERVER = "SQLSERVER" ;
	public static String DB_MYSQL = "MYSQL" ; 
	
	public static String BOOLEAN_FALSE = "0" ; 
	public static String BOOLEAN_TRUE = "1" ;
	
	public static String VIEW_LAYER_EXCEPTION_KEY = "vlek" ; 
	public static String VIEW_LAYER_EXCEPTION_STRUTS_KEY = "svlek" ; 
	public static String OPER_SUCCESS_KEY = "success_key" ; 
	
	public static String DATA_PROVIDER_DATABASE = "database" ; 
	public static String DATA_PROVIDER_LDAP = "ldap" ; 
	
	public static byte SAVE_TOKEN = 1 ;
	public static byte CHECK_TOKEN = 2;
	
	public static byte PAGE = 1; 
	public static byte NPAGE = 2; 
	
	
	public static String COUNTRY_ZH_V1 = "cn" ;

	public static String LANGUAGE_CN = "CN" ; 
	public static String COUNTRY_ZH = "zh" ; 
	public static String LANGUAGE_EN = "EN" ; 
	public static String COUNTRY_US = "us" ; 
	
	
	
	public static boolean getBoolean( String value ) {
		if ( BOOLEAN_FALSE.equals(  value   ) ) {
			return false;
		}
		return true ;
	}
}
